package com.cc.config;


import com.cc.aop.MyAdvice;
import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration          //  配置类
@ComponentScan("com.cc")        //  扫描包
@PropertySource("classpath:database.properties")        // 加载配置文件
@Import({JdbcConfig.class, MybatisConfig.class, MyAdvice.class})
@EnableAspectJAutoProxy         //  开启AOP
@EnableTransactionManagement    //  开启事务
public class SpringConfig {
}
